import Vue from 'vue'
// 抹平浏览器差异
/*
normalize.css：抹平浏览器差异
使用：
  1：下载： npm i normalize.css
  2:导入  import 'normalize.css/normalize.css'  
*/

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
// 引入 element-ui
// import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n
// 导入css
import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/icons' //  引入 icon图标
import '@/permission' // 引入导航守卫
// 引入 element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 全局导入自定义指令
import directives from '@/directives'
import libjs from '@/components/lib/lib'
import Print from 'vue-print-nb'
Vue.use(Print)
Vue.use(libjs)
for (const key in directives) {
  Vue.directive(key, directives[key])
}

Vue.use(ElementUI)
Vue.prototype.$bus = new Vue()

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
